package com.foreknow.test_Interface.demo06;

public class Circle implements ShapePara {
    public static final double Pai = 3.14;
    public double radius;
    private double x;
    private double y;

    @Override
    public double getArea() {
        double area = 0;
        area = Pai * radius * radius;
        return area;
    }

    @Override
    public double getCircumference() {
        double c = 0;
        c = 2 * Pai * radius;
        return c;
    }

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setCenter(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
